#include <iostream>
#include <string>
#include "datatime.h"

using namespace std;

void testchar()
{
	char _thisctime[11] = "00::00::00";
	char* _thistime = _thisctime;

	cout << _thisctime << endl;
	cout << _thistime << endl;
	cout << *_thistime << endl;
}

void testtime()
{
	//MySpace::Time newtime(53, 77, -1);
	MySpace::Time newtime(23, 59, 59);
	char* t = newtime.GetTime();
	cout << t << endl;
	cout << newtime.GetTime() << endl;

	newtime.SteHours(-1);
	newtime.SteMinutes(-2);
	newtime.SteSeconds(-3);
	cout << newtime.GetTime() << endl;

	newtime.SteHours(12);
	newtime.SteMinutes(12);
	newtime.SteSeconds(12);
	cout << newtime.GetTime() << endl;

	cout << newtime.GetHours() << endl;
	cout << newtime.GetMinutes() << endl;
	cout << newtime.GetSeconds() << endl;
}

void testtime2()
{
	MySpace::Time newtime(23, 59, 59);
	//newtime.AddSec(9999999);
	//cout << newtime.GetTime() << endl;
	MySpace::Time addtime(23, 59, 59);
	//newtime += addtime;
	//cout << newtime.GetTime() << endl;

	//MySpace::Time btime(addtime);
	//cout << btime.GetTime() << endl;

	MySpace::Time btime ;
	btime = addtime + newtime;
	cout << btime.GetTime() << endl;

}
int main()
{
	//testtime();
	testtime2();
	
	return 0;
}